package com.taobao.top.link.channel;

import java.nio.ByteBuffer;

public interface ChannelSender {
  public void send(byte[] data, int offset, int length) throws ChannelException;

  public void send(ByteBuffer dataBuffer, SendHandler sendHandler) throws ChannelException;

  public void close(String reason);

  public interface SendHandler {
    public void onSendComplete();
  }
}
